<template>
  <div>
    App
    <!-- 
      Vue2: v-model给组件绑定value属性，绑定input自定义事件
     -->
    <Child v-model="count" />
  </div>
</template>

<script>
import Child from "./Child.vue";

export default {
  name: "App",
  data() {
    return {
      count: 0,
    };
  },
  components: {
    Child,
  },
};
</script>

<style></style>
